﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DownloadOrderNumber.aspx.cs" Inherits="NextPageArticle_DownloadOrderNumber" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>按数字自动增长</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td>XML文件名</td>
                <td>
                    <asp:TextBox ID="txtXmlFileName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="ReqXml" runat="server" 
                        ControlToValidate="txtXmlFileName" ErrorMessage="配置文件"></asp:RequiredFieldValidator>
                </td>
                <td>Detail Id</td>
                <td>
                    <asp:TextBox ID="txtDetailId" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="ReqDetailId" runat="server" 
                        ControlToValidate="txtDetailId" ErrorMessage="detailId"></asp:RequiredFieldValidator>
                </td>           
            </tr>
            <tr>
                <td>开始数字</td>
                <td>
                    <asp:TextBox ID="txtStartNumber" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="ReqStart" runat="server" 
                        ControlToValidate="txtStartNumber" ErrorMessage="开始数字"></asp:RequiredFieldValidator>
                        
                    <asp:RangeValidator ID="RangeStart" runat="server" 
                        ErrorMessage="输入数字(1-999999999)" ControlToValidate="txtStartNumber" 
                        MaximumValue="999999999" MinimumValue="1" Type="Integer"></asp:RangeValidator>
                        
                </td>
                <td>结束数字</td>
                <td>
                    <asp:TextBox ID="txtEndNumber" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="ReqEnd" runat="server" 
                        ControlToValidate="txtEndNumber" ErrorMessage="结束数字"></asp:RequiredFieldValidator>
                        
                    <asp:RangeValidator ID="RangeEnd" runat="server" 
                        ErrorMessage="输入数字(1-999999999)" ControlToValidate="txtEndNumber" 
                        MaximumValue="999999999" MinimumValue="1" Type="Integer"></asp:RangeValidator>
                        
                    <asp:CompareValidator ID="CompareNum" runat="server" 
                        ControlToCompare="txtStartNumber" ControlToValidate="txtEndNumber" 
                        ErrorMessage="开始要小于结束" Operator="GreaterThan" Type="Integer"></asp:CompareValidator>
                        
                </td>
            </tr>
            <tr>
                <td>替换符号</td>
                
                <td colspan="3">
                    <asp:TextBox ID="txtReplace" runat="server" Text="#"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="ReqReplace" runat="server" 
                        ControlToValidate="txtReplace" ErrorMessage="替换符号"></asp:RequiredFieldValidator> 
                        
                    URL规则
                    <asp:TextBox ID="txtUrlRule" runat="server" Width="700px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="ReqUrlRule" runat="server" 
                        ControlToValidate="txtUrlRule" ErrorMessage="Url规则"></asp:RequiredFieldValidator>                     
                </td>                
            </tr>
        </table>
        
        <asp:Button ID="ButtonGet" runat="server" Text="获取" onclick="ButtonGet_Click" />
        
        <asp:Label ID="lblMsg" runat="server" ForeColor="Red" EnableViewState="false"></asp:Label>
        
    </div>    
    </form>
</body>
</html>
